$(document).ready(function () {
	if (method == 'details' || method == 'details_preview') {
        // Lightbox
        $('a.lightbox').lightBox({
            overlayBgColor:'#000',
            overlayOpacity:0.6,
            imageLoading:base_url + 'assets/img/lightbox/loading.gif',
            imageBtnClose:base_url + 'assets/img/lightbox/close.gif',
            imageBtnPrev:base_url + 'assets/img/lightbox/prev.gif',
            imageBtnNext:base_url + 'assets/img/lightbox/next.gif',
            imageBlank:base_url + 'assets/img/lightbox/blank.gif',
            containerResizeSpeed:350,
            txtImage:'Image',
            txtOf:'of'
        });
    }

	$('.search-list .car-box .details p').trunk8({ lines: 3});
	$('.car-box h4').trunk8({ lines: 3});
});

$(window).load(function() {
	$('.search-list .car-box .details p').trunk8({ lines: 3});
	$('.car-box h4').trunk8({ lines: 3});
});